package com.ccys.db.entity;

import com.ccys.db.rely.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
* Created by Mybatis Generator on 2023/12/15
*/
@Data
@Table(name = "tbl_favourite_prescription_detail")
@NoArgsConstructor
@AllArgsConstructor
public class TblFavouritePrescriptionDetail extends BaseEntity {

    @Column(name = "favourite_prescription_id")
    @ApiModelProperty(value = "处方主表ID", name = "favouritePrescriptionId", example = "处方主表ID/新增修改必传")
    private String favouritePrescriptionId;

    @Column(name = "product_id")
    @ApiModelProperty(value = "产品ID", name = "productId", example = "产品ID/新增修改必传")
    private String productId;

    @ApiModelProperty(value = "是否购买", name = "purchased", example = "0/1(新增修改必传)")
    private Integer purchased;

    @ApiModelProperty(value = "prn", name = "prn", example = "0/1")
    private Integer prn;

    @Column(name = "causes_drowsiness")
    @ApiModelProperty(value = "是否导致嗜睡", name = "causesDrowsiness", example = "0/1")
    private Integer causesDrowsiness;

    /**
     * Medication instruction
     */
    @ApiModelProperty(value = "用药指导(Medication instruction)", name = "remark", example = "用药指导")
    private String remark;

    /**
     * Product 当前设置的卖价
     */
    @ApiModelProperty("Product 当前设置的卖价")
    private BigDecimal price;

    /**
     * 保留
     */
    @ApiModelProperty("保留")
    private Integer dosage;

    /**
     * 保留
     */
    @Column(name = "dosage_text")
    @ApiModelProperty("保留")
    private String dosageText;

    /**
     * 保留
     */
    @Column(name = "take_complete_course")
    @ApiModelProperty("保留")
    private Integer takeCompleteCourse;

    @Column(name = "prn_reason")
    private String prnReason;

    @Column(name = "what_is_for")
    private String whatIsFor;

    @Column(name = "any_precautions")
    @ApiModelProperty(value = "注意事项", name = "anyPrecautions", example = "注意事项")
    private String anyPrecautions;

    /**
     * 保留
     */
    @Column(name = "patient_instruction")
    @ApiModelProperty("保留")
    private String patientInstruction;

    /**
     * 保留
     */
    @Column(name = "pharmacist_instruction")
    @ApiModelProperty("保留")
    private String pharmacistInstruction;
}